using Microsoft.Win32;
using NoteManger.Properties;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
namespace NoteManger
{
	public class FrmClientConfig : Form
	{
		private NoteRemote _NoteRemoteObject = null;
		private TLoginInfo _LoginInfo = new TLoginInfo();
		private IContainer components = null;
		private Button btnOK;
		private Button bnCancal;
		private Label lbMonths;
		private NumericUpDown nudMonths;
		private Label label1;
		private Label label2;
		private NumericUpDown nudTopChars;
		private Label label3;
		private GroupBox groupBox1;
		private Label label4;
		private TextBox tboxautobackuppath;
		private Button btnLocate;
		private FolderBrowserDialog folderBrowserDialog;
		private Button btnDefaultConfig;
		private GroupBox gboxautologin;
		private Label label6;
		private Label label5;
		private CheckBox ckboxAutoLogin;
		private TextBox tboxLoginPwd;
		private TextBox tboxLoginID;
		private TextBox tboxDefault;
		private Label label7;
		private GroupBox groupBox2;
		private TextBox tboxsender;
		private Label label8;
		private TextBox tboxusername;
		private Label label9;
		private TextBox tboxpwd;
		private Label label10;
		private TextBox tboxserver;
		private Label label11;
		private GroupBox groupBox3;
		private Label label14;
		private NumericUpDown numWsh;
		private Label label15;
		private Label label12;
		private NumericUpDown numWj;
		private Label label13;
		private ComboBox cbbAlarm;
		private Label label16;
		private DateTimePicker dtpbegindate;
		private Label label17;
		private Button btnHelp;
		public NoteRemote NoteRemoteObject
		{
			set
			{
				this._NoteRemoteObject = value;
			}
		}
		public TLoginInfo LoginInfo
		{
			set
			{
				this._LoginInfo = value;
			}
		}
		public FrmClientConfig()
		{
			this.InitializeComponent();
		}
		private void ReadClientConfig()
		{
			try
			{
				RegistryKey localMachine = Registry.LocalMachine;
				RegistryKey registryKey = localMachine.OpenSubKey("Software\\KSExpert", true);
				object value = registryKey.GetValue("NoteLoadMonths");
				if (value == null)
				{
					this.nudMonths.Value = 6m;
				}
				else
				{
					this.nudMonths.Value = Convert.ToInt32(value);
				}
				value = registryKey.GetValue("NoteTopicDisplayChars");
				if (value == null)
				{
					this.nudTopChars.Value = 18m;
				}
				else
				{
					this.nudTopChars.Value = Convert.ToInt32(value);
				}
				value = registryKey.GetValue("WorkNotesAutoBackupPath");
				if (value == null)
				{
					this.tboxautobackuppath.Text = "D:\\WorkNotesAutoBackup\\";
				}
				else
				{
					this.tboxautobackuppath.Text = Convert.ToString(value);
				}
				value = registryKey.GetValue("ArrowAutoLogin");
				if (value == null)
				{
					this.ckboxAutoLogin.Checked = false;
				}
				else
				{
					if (value.ToString() == "true")
					{
						this.ckboxAutoLogin.Checked = true;
					}
					else
					{
						this.ckboxAutoLogin.Checked = false;
					}
				}
				value = registryKey.GetValue("AutoLoginID");
				if (value == null)
				{
					this.tboxLoginID.Text = "";
				}
				else
				{
					this.tboxLoginID.Text = value.ToString();
				}
				value = registryKey.GetValue("AutoLoginPwd");
				if (value == null)
				{
					this.tboxLoginPwd.Text = "";
				}
				else
				{
					this.tboxLoginPwd.Text = value.ToString();
				}
				this.tboxLoginID.ReadOnly = !this.ckboxAutoLogin.Checked;
				this.tboxLoginPwd.ReadOnly = !this.ckboxAutoLogin.Checked;
				value = registryKey.GetValue("AuditDefaultValue");
				if (value == null)
				{
					this.tboxDefault.Text = "";
				}
				else
				{
					this.tboxDefault.Text = value.ToString();
				}
				value = registryKey.GetValue("MailServer");
				if (value != null)
				{
					if (value.ToString() != "")
					{
						this.tboxserver.Text = value.ToString();
					}
				}
				value = registryKey.GetValue("FromMailAddress");
				if (value == null)
				{
					this.tboxsender.Text = "";
				}
				else
				{
					this.tboxsender.Text = value.ToString();
				}
				value = registryKey.GetValue("MailUserName");
				if (value == null)
				{
					this.tboxusername.Text = "";
				}
				else
				{
					this.tboxusername.Text = value.ToString();
				}
				value = registryKey.GetValue("MailPwd");
				if (value == null)
				{
					this.tboxpwd.Text = "";
				}
				else
				{
					this.tboxpwd.Text = value.ToString();
				}
				value = registryKey.GetValue("Alarm0");
				if (value == null)
				{
					this.numWj.Value = 1m;
				}
				else
				{
					this.numWj.Value = Convert.ToInt32(value);
				}
				value = registryKey.GetValue("Alarm1");
				if (value == null)
				{
					this.numWsh.Value = 1m;
				}
				else
				{
					this.numWsh.Value = Convert.ToInt32(value);
				}
				value = registryKey.GetValue("AlarmType");
				if (value == null)
				{
					this.cbbAlarm.SelectedIndex = 7;
				}
				else
				{
					this.cbbAlarm.SelectedIndex = Convert.ToInt32(value);
				}
				value = registryKey.GetValue("AlarmBeginDate");
				if (value == null)
				{
					this.dtpbegindate.Value = Convert.ToDateTime("2009-02-09");
				}
				else
				{
					try
					{
						this.dtpbegindate.Value = Convert.ToDateTime(value.ToString());
					}
					catch
					{
						this.dtpbegindate.Value = Convert.ToDateTime("2009-02-09");
					}
				}
				registryKey.Close();
				localMachine.Close();
			}
			catch
			{
			}
		}
		private bool SaveClientConfig()
		{
			bool result;
			try
			{
				RegistryKey localMachine = Registry.LocalMachine;
				RegistryKey registryKey = localMachine.OpenSubKey("Software", true);
				RegistryKey registryKey2 = registryKey.CreateSubKey("KSExpert");
				registryKey2.SetValue("NoteLoadMonths", this.nudMonths.Value.ToString());
				registryKey2.SetValue("NoteTopicDisplayChars", this.nudTopChars.Value.ToString());
				registryKey2.SetValue("WorkNotesAutoBackupPath", this.tboxautobackuppath.Text);
				registryKey2.SetValue("ArrowAutoLogin", this.ckboxAutoLogin.Checked.ToString().ToLower());
				if (this.ckboxAutoLogin.Checked)
				{
					registryKey2.SetValue("AutoLoginID", this.tboxLoginID.Text);
					registryKey2.SetValue("AutoLoginPwd", this.tboxLoginPwd.Text);
				}
				else
				{
					registryKey2.SetValue("AutoLoginID", "");
					registryKey2.SetValue("AutoLoginPwd", "");
				}
				registryKey2.SetValue("AuditDefaultValue", this.tboxDefault.Text);
				registryKey2.SetValue("MailServer", this.tboxserver.Text);
				registryKey2.SetValue("FromMailAddress", this.tboxsender.Text);
				registryKey2.SetValue("MailUserName", this.tboxusername.Text);
				registryKey2.SetValue("MailPwd", this.tboxpwd.Text);
				registryKey2.SetValue("Alarm0", this.numWj.Value.ToString());
				registryKey2.SetValue("Alarm1", this.numWsh.Value.ToString());
				registryKey2.SetValue("AlarmType", this.cbbAlarm.SelectedIndex.ToString());
				registryKey2.SetValue("AlarmBeginDate", this.dtpbegindate.Value.ToString("yyyy-MM-dd"));
				registryKey2.Close();
				registryKey.Close();
				string[,] array = new string[0, 0];
				string text = "";
				string aStrSql = string.Concat(new string[]
				{
					"exec usp_wn_updateuserinfo 0,'",
					this._LoginInfo.LoginID,
					"','",
					this.dtpbegindate.Value.ToString("yyyyMMdd"),
					"'"
				});
				bool flag = this._NoteRemoteObject.CommonQuery(aStrSql, ref array, ref text);
				if (!Directory.Exists(this.tboxautobackuppath.Text))
				{
					Directory.CreateDirectory(this.tboxautobackuppath.Text);
				}
				result = true;
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				result = false;
			}
			return result;
		}
		private void FrmClientConfig_Load(object sender, EventArgs e)
		{
			this.ReadClientConfig();
		}
		private void bnCancal_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
		}
		private void btnOK_Click(object sender, EventArgs e)
		{
			if (this.SaveClientConfig())
			{
				base.DialogResult = DialogResult.OK;
			}
		}
		private void btnLocate_Click(object sender, EventArgs e)
		{
			if (this.folderBrowserDialog.ShowDialog() == DialogResult.OK)
			{
				this.tboxautobackuppath.Text = this.folderBrowserDialog.SelectedPath;
			}
		}
		private void btnDefaultConfig_Click(object sender, EventArgs e)
		{
			this.tboxserver.Text = "www.winning.com.cn";
			this.tboxsender.Clear();
			this.tboxusername.Clear();
			this.tboxpwd.Clear();
			this.numWj.Value = 1m;
			this.numWsh.Value = 1m;
			this.nudMonths.Value = 6m;
			this.nudTopChars.Value = 10m;
			this.tboxautobackuppath.Text = "D:\\WorkNotesAutoBackup\\";
			this.ckboxAutoLogin.Checked = false;
		}
		private void ckboxAutoLogin_CheckedChanged(object sender, EventArgs e)
		{
			this.tboxLoginID.ReadOnly = !this.ckboxAutoLogin.Checked;
			this.tboxLoginPwd.ReadOnly = !this.ckboxAutoLogin.Checked;
			if (!this.ckboxAutoLogin.Checked)
			{
				this.tboxLoginID.Text = "";
			}
			if (!this.ckboxAutoLogin.Checked)
			{
				this.tboxLoginPwd.Text = "";
			}
		}
		private void btnHelp_Click(object sender, EventArgs e)
		{
			Help.ShowHelp(new Control(), NoteRemote.GetNoteClientStartPath() + "\\日志管理系统帮助文件.chm", "客户端参数配置.htm");
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.btnOK = new Button();
			this.bnCancal = new Button();
			this.lbMonths = new Label();
			this.nudMonths = new NumericUpDown();
			this.label1 = new Label();
			this.label2 = new Label();
			this.nudTopChars = new NumericUpDown();
			this.label3 = new Label();
			this.groupBox1 = new GroupBox();
			this.label4 = new Label();
			this.tboxautobackuppath = new TextBox();
			this.btnLocate = new Button();
			this.folderBrowserDialog = new FolderBrowserDialog();
			this.btnDefaultConfig = new Button();
			this.gboxautologin = new GroupBox();
			this.tboxLoginPwd = new TextBox();
			this.tboxLoginID = new TextBox();
			this.ckboxAutoLogin = new CheckBox();
			this.label6 = new Label();
			this.label5 = new Label();
			this.tboxDefault = new TextBox();
			this.label7 = new Label();
			this.groupBox2 = new GroupBox();
			this.tboxserver = new TextBox();
			this.label11 = new Label();
			this.tboxpwd = new TextBox();
			this.label10 = new Label();
			this.tboxusername = new TextBox();
			this.label9 = new Label();
			this.tboxsender = new TextBox();
			this.label8 = new Label();
			this.groupBox3 = new GroupBox();
			this.label17 = new Label();
			this.label16 = new Label();
			this.dtpbegindate = new DateTimePicker();
			this.cbbAlarm = new ComboBox();
			this.label14 = new Label();
			this.numWsh = new NumericUpDown();
			this.label15 = new Label();
			this.label12 = new Label();
			this.numWj = new NumericUpDown();
			this.label13 = new Label();
			this.btnHelp = new Button();
			((ISupportInitialize)this.nudMonths).BeginInit();
			((ISupportInitialize)this.nudTopChars).BeginInit();
			this.gboxautologin.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			((ISupportInitialize)this.numWsh).BeginInit();
			((ISupportInitialize)this.numWj).BeginInit();
			base.SuspendLayout();
			this.btnOK.Location = new System.Drawing.Point(200, 494);
			this.btnOK.Name = "btnOK";
			this.btnOK.Size = new System.Drawing.Size(75, 23);
			this.btnOK.TabIndex = 0;
			this.btnOK.TabStop = false;
			this.btnOK.Text = "确定(&O)";
			this.btnOK.UseVisualStyleBackColor = true;
			this.btnOK.Click += new EventHandler(this.btnOK_Click);
			this.bnCancal.Location = new System.Drawing.Point(281, 494);
			this.bnCancal.Name = "bnCancal";
			this.bnCancal.Size = new System.Drawing.Size(75, 23);
			this.bnCancal.TabIndex = 1;
			this.bnCancal.TabStop = false;
			this.bnCancal.Text = "关闭(&C)";
			this.bnCancal.UseVisualStyleBackColor = true;
			this.bnCancal.Click += new EventHandler(this.bnCancal_Click);
			this.lbMonths.AutoSize = true;
			this.lbMonths.Location = new System.Drawing.Point(13, 18);
			this.lbMonths.Name = "lbMonths";
			this.lbMonths.Size = new System.Drawing.Size(89, 12);
			this.lbMonths.TabIndex = 2;
			this.lbMonths.Text = "主界面显示最近";
			this.nudMonths.Location = new System.Drawing.Point(106, 14);
			NumericUpDown arg_3EA_0 = this.nudMonths;
			int[] array = new int[4];
			array[0] = 12;
			arg_3EA_0.Maximum = new decimal(array);
			NumericUpDown arg_407_0 = this.nudMonths;
			array = new int[4];
			array[0] = 3;
			arg_407_0.Minimum = new decimal(array);
			this.nudMonths.Name = "nudMonths";
			this.nudMonths.Size = new System.Drawing.Size(57, 21);
			this.nudMonths.TabIndex = 0;
			NumericUpDown arg_457_0 = this.nudMonths;
			array = new int[4];
			array[0] = 6;
			arg_457_0.Value = new decimal(array);
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(169, 18);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(89, 12);
			this.label1.TabIndex = 4;
			this.label1.Text = "个月的日志大纲";
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(236, 52);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(41, 12);
			this.label2.TabIndex = 7;
			this.label2.Text = "个字符";
			this.nudTopChars.Location = new System.Drawing.Point(175, 47);
			NumericUpDown arg_55F_0 = this.nudTopChars;
			array = new int[4];
			array[0] = 36;
			arg_55F_0.Maximum = new decimal(array);
			NumericUpDown arg_57C_0 = this.nudTopChars;
			array = new int[4];
			array[0] = 6;
			arg_57C_0.Minimum = new decimal(array);
			this.nudTopChars.Name = "nudTopChars";
			this.nudTopChars.Size = new System.Drawing.Size(57, 21);
			this.nudTopChars.TabIndex = 1;
			NumericUpDown arg_5CD_0 = this.nudTopChars;
			array = new int[4];
			array[0] = 18;
			arg_5CD_0.Value = new decimal(array);
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(13, 51);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(161, 12);
			this.label3.TabIndex = 5;
			this.label3.Text = "日志大纲只显示日志主题的前";
			this.groupBox1.Location = new System.Drawing.Point(8, 479);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(362, 5);
			this.groupBox1.TabIndex = 8;
			this.groupBox1.TabStop = false;
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(13, 85);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(125, 12);
			this.label4.TabIndex = 9;
			this.label4.Text = "本地日志自动备份路径";
			this.tboxautobackuppath.BackColor = System.Drawing.Color.White;
			this.tboxautobackuppath.Location = new System.Drawing.Point(140, 81);
			this.tboxautobackuppath.Name = "tboxautobackuppath";
			this.tboxautobackuppath.ReadOnly = true;
			this.tboxautobackuppath.Size = new System.Drawing.Size(190, 21);
			this.tboxautobackuppath.TabIndex = 10;
			this.tboxautobackuppath.Text = "D:\\WorkNotesAutoBackup\\";
			this.btnLocate.Font = new System.Drawing.Font("宋体", 5.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.btnLocate.Location = new System.Drawing.Point(337, 80);
			this.btnLocate.Name = "btnLocate";
			this.btnLocate.Size = new System.Drawing.Size(25, 23);
			this.btnLocate.TabIndex = 11;
			this.btnLocate.Text = "...";
			this.btnLocate.UseVisualStyleBackColor = true;
			this.btnLocate.Click += new EventHandler(this.btnLocate_Click);
			this.btnDefaultConfig.Location = new System.Drawing.Point(45, 494);
			this.btnDefaultConfig.Name = "btnDefaultConfig";
			this.btnDefaultConfig.Size = new System.Drawing.Size(113, 23);
			this.btnDefaultConfig.TabIndex = 12;
			this.btnDefaultConfig.TabStop = false;
			this.btnDefaultConfig.Text = "恢复默认设置(&D)";
			this.btnDefaultConfig.UseVisualStyleBackColor = true;
			this.btnDefaultConfig.Click += new EventHandler(this.btnDefaultConfig_Click);
			this.gboxautologin.Controls.Add(this.tboxLoginPwd);
			this.gboxautologin.Controls.Add(this.tboxLoginID);
			this.gboxautologin.Controls.Add(this.ckboxAutoLogin);
			this.gboxautologin.Controls.Add(this.label6);
			this.gboxautologin.Controls.Add(this.label5);
			this.gboxautologin.Location = new System.Drawing.Point(15, 109);
			this.gboxautologin.Name = "gboxautologin";
			this.gboxautologin.Size = new System.Drawing.Size(346, 49);
			this.gboxautologin.TabIndex = 17;
			this.gboxautologin.TabStop = false;
			this.tboxLoginPwd.Location = new System.Drawing.Point(256, 19);
			this.tboxLoginPwd.Name = "tboxLoginPwd";
			this.tboxLoginPwd.PasswordChar = '*';
			this.tboxLoginPwd.ReadOnly = true;
			this.tboxLoginPwd.Size = new System.Drawing.Size(84, 21);
			this.tboxLoginPwd.TabIndex = 21;
			this.tboxLoginID.Location = new System.Drawing.Point(75, 19);
			this.tboxLoginID.Name = "tboxLoginID";
			this.tboxLoginID.ReadOnly = true;
			this.tboxLoginID.Size = new System.Drawing.Size(100, 21);
			this.tboxLoginID.TabIndex = 20;
			this.ckboxAutoLogin.AutoSize = true;
			this.ckboxAutoLogin.Location = new System.Drawing.Point(8, 1);
			this.ckboxAutoLogin.Name = "ckboxAutoLogin";
			this.ckboxAutoLogin.Size = new System.Drawing.Size(96, 16);
			this.ckboxAutoLogin.TabIndex = 18;
			this.ckboxAutoLogin.Text = "启用自动登录";
			this.ckboxAutoLogin.UseVisualStyleBackColor = true;
			this.ckboxAutoLogin.CheckedChanged += new EventHandler(this.ckboxAutoLogin_CheckedChanged);
			this.label6.AutoSize = true;
			this.label6.Location = new System.Drawing.Point(178, 23);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(77, 12);
			this.label6.TabIndex = 19;
			this.label6.Text = "自动登录密码";
			this.label5.AutoSize = true;
			this.label5.Location = new System.Drawing.Point(10, 23);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(65, 12);
			this.label5.TabIndex = 17;
			this.label5.Text = "自动登录ID";
			this.tboxDefault.BackColor = System.Drawing.Color.White;
			this.tboxDefault.Location = new System.Drawing.Point(144, 168);
			this.tboxDefault.Name = "tboxDefault";
			this.tboxDefault.Size = new System.Drawing.Size(217, 21);
			this.tboxDefault.TabIndex = 21;
			this.label7.AutoSize = true;
			this.label7.Location = new System.Drawing.Point(17, 172);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(125, 12);
			this.label7.TabIndex = 20;
			this.label7.Text = "审核通过默认核定系数";
			this.groupBox2.Controls.Add(this.tboxserver);
			this.groupBox2.Controls.Add(this.label11);
			this.groupBox2.Controls.Add(this.tboxpwd);
			this.groupBox2.Controls.Add(this.label10);
			this.groupBox2.Controls.Add(this.tboxusername);
			this.groupBox2.Controls.Add(this.label9);
			this.groupBox2.Controls.Add(this.tboxsender);
			this.groupBox2.Controls.Add(this.label8);
			this.groupBox2.ForeColor = System.Drawing.Color.Black;
			this.groupBox2.Location = new System.Drawing.Point(15, 200);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(347, 135);
			this.groupBox2.TabIndex = 22;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "日志催交邮件通知账户信息";
			this.tboxserver.BackColor = System.Drawing.Color.White;
			this.tboxserver.Location = new System.Drawing.Point(103, 24);
			this.tboxserver.Name = "tboxserver";
			this.tboxserver.Size = new System.Drawing.Size(228, 21);
			this.tboxserver.TabIndex = 18;
			this.tboxserver.Text = "www.winning.com.cn";
			this.label11.AutoSize = true;
			this.label11.Location = new System.Drawing.Point(14, 28);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(83, 12);
			this.label11.TabIndex = 17;
			this.label11.Text = "邮件服务器(&S)";
			this.tboxpwd.BackColor = System.Drawing.Color.White;
			this.tboxpwd.Location = new System.Drawing.Point(103, 105);
			this.tboxpwd.Name = "tboxpwd";
			this.tboxpwd.PasswordChar = '*';
			this.tboxpwd.Size = new System.Drawing.Size(228, 21);
			this.tboxpwd.TabIndex = 16;
			this.label10.AutoSize = true;
			this.label10.Location = new System.Drawing.Point(14, 109);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(71, 12);
			this.label10.TabIndex = 15;
			this.label10.Text = "邮箱密码(&P)";
			this.tboxusername.BackColor = System.Drawing.Color.White;
			this.tboxusername.Location = new System.Drawing.Point(103, 78);
			this.tboxusername.Name = "tboxusername";
			this.tboxusername.Size = new System.Drawing.Size(228, 21);
			this.tboxusername.TabIndex = 14;
			this.label9.AutoSize = true;
			this.label9.Location = new System.Drawing.Point(14, 82);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(83, 12);
			this.label9.TabIndex = 13;
			this.label9.Text = "邮箱用户名(&U)";
			this.tboxsender.BackColor = System.Drawing.Color.White;
			this.tboxsender.Location = new System.Drawing.Point(103, 51);
			this.tboxsender.Name = "tboxsender";
			this.tboxsender.Size = new System.Drawing.Size(228, 21);
			this.tboxsender.TabIndex = 12;
			this.label8.AutoSize = true;
			this.label8.Location = new System.Drawing.Point(14, 55);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(83, 12);
			this.label8.TabIndex = 11;
			this.label8.Text = "发件人地址(&F)";
			this.groupBox3.Controls.Add(this.label17);
			this.groupBox3.Controls.Add(this.label16);
			this.groupBox3.Controls.Add(this.dtpbegindate);
			this.groupBox3.Controls.Add(this.cbbAlarm);
			this.groupBox3.Controls.Add(this.label14);
			this.groupBox3.Controls.Add(this.numWsh);
			this.groupBox3.Controls.Add(this.label15);
			this.groupBox3.Controls.Add(this.label12);
			this.groupBox3.Controls.Add(this.numWj);
			this.groupBox3.Controls.Add(this.label13);
			this.groupBox3.ForeColor = System.Drawing.Color.Black;
			this.groupBox3.Location = new System.Drawing.Point(15, 345);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(347, 129);
			this.groupBox3.TabIndex = 23;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "提醒";
			this.label17.AutoSize = true;
			this.label17.Location = new System.Drawing.Point(228, 24);
			this.label17.Name = "label17";
			this.label17.Size = new System.Drawing.Size(89, 12);
			this.label17.TabIndex = 14;
			this.label17.Text = "之后未交的日志";
			this.label16.AutoSize = true;
			this.label16.Location = new System.Drawing.Point(14, 24);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(29, 12);
			this.label16.TabIndex = 13;
			this.label16.Text = "提醒";
			this.dtpbegindate.Location = new System.Drawing.Point(47, 20);
			this.dtpbegindate.Name = "dtpbegindate";
			this.dtpbegindate.Size = new System.Drawing.Size(176, 21);
			this.dtpbegindate.TabIndex = 12;
			this.dtpbegindate.Value = new DateTime(2014, 1, 1, 0, 0, 0, 0);
			this.cbbAlarm.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbAlarm.FormattingEnabled = true;
			this.cbbAlarm.Items.AddRange(new object[]
			{
				"0 - 不提醒",
				"1 - 在程序首次启动时提醒我",
				"2 - 在日志编辑窗口关闭时提醒我",
				"3 - 在日志审核界面关闭时提醒我",
				"4 - 在程序首次启动和日志编辑窗口关闭时提醒我",
				"5 - 在程序首次启动和日志审核界面关闭时提醒我",
				"6 - 在日志编辑窗口关闭和日志审核界面关闭时提醒我",
				"7 - 一直提醒"
			});
			this.cbbAlarm.Location = new System.Drawing.Point(16, 100);
			this.cbbAlarm.Name = "cbbAlarm";
			this.cbbAlarm.Size = new System.Drawing.Size(313, 20);
			this.cbbAlarm.TabIndex = 11;
			this.label14.AutoSize = true;
			this.label14.Location = new System.Drawing.Point(110, 77);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(113, 12);
			this.label14.TabIndex = 10;
			this.label14.Text = "天之前未审核的日志";
			this.numWsh.Location = new System.Drawing.Point(47, 73);
			NumericUpDown arg_14B8_0 = this.numWsh;
			array = new int[4];
			array[0] = 7;
			arg_14B8_0.Maximum = new decimal(array);
			this.numWsh.Name = "numWsh";
			this.numWsh.Size = new System.Drawing.Size(57, 21);
			this.numWsh.TabIndex = 8;
			NumericUpDown arg_1508_0 = this.numWsh;
			array = new int[4];
			array[0] = 1;
			arg_1508_0.Value = new decimal(array);
			this.label15.AutoSize = true;
			this.label15.Location = new System.Drawing.Point(14, 77);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(29, 12);
			this.label15.TabIndex = 9;
			this.label15.Text = "提醒";
			this.label12.AutoSize = true;
			this.label12.Location = new System.Drawing.Point(110, 50);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(101, 12);
			this.label12.TabIndex = 7;
			this.label12.Text = "天之前未交的日志";
			this.numWj.Location = new System.Drawing.Point(47, 46);
			NumericUpDown arg_1607_0 = this.numWj;
			array = new int[4];
			array[0] = 7;
			arg_1607_0.Maximum = new decimal(array);
			this.numWj.Name = "numWj";
			this.numWj.Size = new System.Drawing.Size(57, 21);
			this.numWj.TabIndex = 5;
			NumericUpDown arg_1657_0 = this.numWj;
			array = new int[4];
			array[0] = 1;
			arg_1657_0.Value = new decimal(array);
			this.label13.AutoSize = true;
			this.label13.Location = new System.Drawing.Point(14, 50);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(29, 12);
			this.label13.TabIndex = 6;
			this.label13.Text = "提醒";
			this.btnHelp.Image = Resources.information_2;
			this.btnHelp.Location = new System.Drawing.Point(15, 494);
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.Size = new System.Drawing.Size(24, 23);
			this.btnHelp.TabIndex = 51;
			this.btnHelp.UseVisualStyleBackColor = true;
			this.btnHelp.Click += new EventHandler(this.btnHelp_Click);
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(378, 525);
			base.Controls.Add(this.btnHelp);
			base.Controls.Add(this.groupBox3);
			base.Controls.Add(this.groupBox2);
			base.Controls.Add(this.tboxDefault);
			base.Controls.Add(this.label7);
			base.Controls.Add(this.gboxautologin);
			base.Controls.Add(this.btnDefaultConfig);
			base.Controls.Add(this.btnLocate);
			base.Controls.Add(this.tboxautobackuppath);
			base.Controls.Add(this.label4);
			base.Controls.Add(this.groupBox1);
			base.Controls.Add(this.label2);
			base.Controls.Add(this.nudTopChars);
			base.Controls.Add(this.label3);
			base.Controls.Add(this.label1);
			base.Controls.Add(this.nudMonths);
			base.Controls.Add(this.lbMonths);
			base.Controls.Add(this.bnCancal);
			base.Controls.Add(this.btnOK);
			base.FormBorderStyle = FormBorderStyle.FixedDialog;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "FrmClientConfig";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "客户端参数配置";
			base.Load += new EventHandler(this.FrmClientConfig_Load);
			((ISupportInitialize)this.nudMonths).EndInit();
			((ISupportInitialize)this.nudTopChars).EndInit();
			this.gboxautologin.ResumeLayout(false);
			this.gboxautologin.PerformLayout();
			this.groupBox2.ResumeLayout(false);
			this.groupBox2.PerformLayout();
			this.groupBox3.ResumeLayout(false);
			this.groupBox3.PerformLayout();
			((ISupportInitialize)this.numWsh).EndInit();
			((ISupportInitialize)this.numWj).EndInit();
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
